package dingdanmingxi

import (
    "server/amtf"
    "server/aa/lysd/shangpin"
    "server/aa/lysd/sku"
)

type S订单明细model struct {
    amtf.S基础model
    A商品  shangpin.S商品model `json:"商品" gorm:"->;foreignKey:S商品modelID;"`
    Asku  sku.Sskumodel `json:"sku" gorm:"->;foreignKey:SskumodelID;"`
    A数量  int `json:"数量" gorm:"column:数量;"`
    A价格  int `json:"价格" gorm:"column:价格;"`
    A已评论  bool `json:"已评论" gorm:"column:已评论;"`
    S订单modelID  uint `json:"订单id" gorm:"column:订单id;"`
    S商品modelID  uint `json:"商品id" gorm:"column:商品id;"`
    SskumodelID  uint `json:"skuid" gorm:"column:skuid;"`
}

func (S订单明细model) TableName() string {
    return "老鱼商店_订单明细"
}

